﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Module_Basic_Entities;

namespace Module_Basic_Entities
{
    public static class LINQ_Helper_Methods
    {
        public static void Draw(this SpriteBatch spriteBatch, float gameTime, Map2D map2D, Vector2 position, Color color)
        {
            map2D.SpriteBatch =  spriteBatch;
            map2D.WorldPosition = position;
            map2D.Color = color;
            map2D.Draw(gameTime);
        }
    }
}
